#include <iostream>
#include <algorithm>

using namespace std;

int main() {
    int num;
    cin >> num;
    int nums[num];
    for (int i = 0; i < num; i++) {
        int in_num;
        cin >> in_num;
        nums[i] = in_num;
    }
    std::sort(nums, nums + num);
    int *end = std::unique(nums, nums + num);
    int newSize = end - nums;
    for (int i = 0; i < newSize; i++) {
        cout << nums[i] << endl;
    }
    return 0;
}
